{% extends '::base.html.twig' %} 
{% block title %}Incapacidades :: Editar{% endblock %}

{% block module_name %}Incapacidades{% endblock %}

{% block body %}
<h2>Formulario</h2>
<div class="widget_inside records_list">
    <div class="form">
        <form action="{{ path('incapacidades_update', { 'id': entity.id }) }}" method="post" {{ form_enctype(edit_form) }} id="formID">
            <div class="clearfix">
                <label>Empleado</label>
                <div class="input">
                    <input type="text" value="{{ entity.idPeriodosLaboralesContratos.idContrato.idTrabajador }}" readonly />
                </div>
            </div>
            <div class="clearfix">
                <label>Periodo de Causaci&oacute;n</label>
                <div class="input">
                    <input type="text" value="{{ entity.idPeriodosLaboralesContratos.idPeriodoLaboral.idPeriodo.comentarios }}" readonly />
                </div>
            </div>
            {{ form_widget(edit_form) }}
            <div class="clearfix grey-highlight"> 
                <div class="input no-label">
                    <button type="submit" class="button blue">Guardar</button>
                </div>
            </div>
        </form>
    </div>
    <div class="margin_top_15 right">
                    <form action="{{ path('incapacidades_delete', { 'id': entity.id }) }}" method="post" style="display: inline-block;">
        {{ form_widget(delete_form) }}
        <button type="submit" class="button black">Eliminar</button>
    </form>
    <a href="{{ path('incapacidades') }}" class="button">Regresar a la Lista</a>
    </div>
</div>
{% endblock %}